package com.example.demo.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author juntao.zhang
 * @version V1.0
 * @Description: TODO
 * @Package com.example.demo
 * @date 2018/4/12 21:47
 */
@FeignClient(url="http://localhost:8080",name = "demo")
public interface IService {

    @GetMapping("/test")
    List<String> show(@RequestParam("names") List<String> names);
}
